package com.magold.game.factory;

import com.magold.io.XMLReader;
import com.magold.logic.Fan;
import com.magold.logic.ISpriteLogic;

public class FanFactory extends BaseLogicFactory {

	public FanFactory() {
		super(Fan.class.getSimpleName());
	}

	@Override
	protected ISpriteLogic createSafely(XMLReader pReader) {
		int speedLevel = pReader.getInt("speed_level");

		return new Fan(speedLevel);
	}

}
